Skip to content

Conversation

@Sajjon
Copy link
Contributor

@Sajjon Sajjon commented Oct 3, 2025

When collations expire we do not log the candidate_hash nor the pov_hash making it hard to map the logged entries about Candidate generated and Candidate expired together.

Changes

I've added pov_hash and candidate_hash to the CollationStats struct and logging these fields when we log "Collation expired"

Compatability

I'm unsure of the label to use. CollationStats is only pub(crate) and we only create them in the place I used, the constructor is only used in one place, the place where I changed.

(Matrix thread)

@Sajjon Sajjon requested review from alexggh and sandreim October 3, 2025 14:20
@Sajjon Sajjon added the R0-no-crate-publish-required The change does not require any crates to be re-published. label Oct 3, 2025
@Sajjon Sajjon added T0-node This PR/Issue is related to the topic “node”. and removed R0-no-crate-publish-required The change does not require any crates to be re-published. labels Oct 6, 2025
@Sajjon
Copy link
Contributor Author

Sajjon commented Oct 6, 2025

/cmd prdoc --audience node --bump patch

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

Command "prdoc --audience node --bump patch" has failed ❌! See logs here

@Sajjon Sajjon added this pull request to the merge queue Oct 9, 2025
Merged via the queue into master with commit 798888f Oct 9, 2025
259 of 261 checks passed
@Sajjon Sajjon deleted the cyon/log_candidate_hash_and_pov_hash_when_collations_expire branch October 9, 2025 08:11
alvicsam pushed a commit that referenced this pull request Oct 17, 2025
When collations expire we do not log the `candidate_hash` nor the
`pov_hash` making it hard to map the logged entries about `Candidate
generated` and `Candidate expired` together.

# Changes
I've added `pov_hash` and `candidate_hash` to the `CollationStats`
struct and logging these fields when we log `"Collation expired"`

# Compatability
I'm unsure of the label to use. `CollationStats` is only `pub(crate)`
and we only create them in the place I used, the constructor is only
used in one place, the place where I changed.


([Matrix
thread](https://matrix.to/#/!oRmZcZCtnViqLdLelR:parity.io/$Xwm4WDbOAkJD_tdf8ksLUu81bLoDbZxUu2b46_RJ_7k?via=parity.io))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T0-node This PR/Issue is related to the topic “node”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants